package mdFile

import (
	"editor/dao"
	"github.com/gin-gonic/gin"
)

func AddFile(c *gin.Context, title string, categoryId int64, content string, sortNum int64) (id int64, err error) {
	return dao.AddFile(c, title, categoryId, content, sortNum)
}

func AddDir(c *gin.Context, dirName string, sortNum int64) (id int64, err error) {
	return dao.AddDir(c, dirName, sortNum)
}
